package org.example.meetingsystem.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;

public enum ReservationStatus {

    LOCKED("LOCKED", "锁定"),
    CONFIRMED("CONFIRMED", "已确认"),
    IN_USE("IN_USE", "使用中"),
    COMPLETED("COMPLETED", "已完成"),
    CANCELLED("CANCELLED", "已取消");

    @EnumValue
    private final String code;

    private final String desc;

    ReservationStatus(String code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public String getCode() {
        return code;
    }

    public String getDesc() {
        return desc;
    }
}